'use strict';
const db=uniCloud.database()
exports.main = async (event, context) => {
	
	let {_id,title,year,mouth,day,dengji,contain,relationship,image,id,novel} = event;

	const collection = db.collection('novelshijianlist'); // 替换为你的集合名称
	
	const res = await collection.doc(_id).update({
	title,year,mouth,day,dengji,contain,relationship,image,id,novel
	});
	return res;
	
	
};


